public class zy2 {
    public static void main(String[] args) {
        int b = 0;
        for (int a = 1; a <= 100; a++) {
            if (a % 6 == 0) {
                System.out.print(a + " ");
                b++;
                if (b % 5 == 0) {
                    System.out.println();
                }
            }
        }
        System.out.println(b + "个");
    }
}
